import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

import '../../../design_specifications.dart';


///用户关注   粉丝   帖子   收藏


class ProfileDataItem extends StatelessWidget {
  const ProfileDataItem({super.key, required this.label, required this.content, this.onTap});
  final String label;
  final String content;
  final Function? onTap;
  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: (){
        if(onTap!=null){
          onTap!();
        }
      },
      child: Column(
        children: [
          Text(content,style: TextStyle(fontFamily: harmony,fontSize: 18.sp,color: textColor,fontWeight: FontWeight.bold),),
          SizedBox(height: 4.w,),
          Text(label,style: TextStyle(fontFamily: harmony,fontSize: 12.sp,color: descColor),)
        ],
      ),
    );
  }
}
